package com.balabala.gym_goods.mapper;

import com.balabala.dto.UserNameDto;
import com.balabala.gym_goods.pojo.dto.QueryTEDto;
import com.balabala.gym_goods.pojo.entity.Evaluation;
import com.balabala.gym_goods.pojo.vo.EvaluationVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author fsj
 * @date 2023/5/5 19:28
 */
public interface EvaluationMapper extends BaseMapper<Evaluation> {

   //根据商品id查询评价
   List<Evaluation> findEvaluationBySpuId(Long spuId);

   //根据会员名和课程名模糊查询
   List<EvaluationVo> findVipIdBy(QueryTEDto queryTEDto);


    //根据团课id查询评价

    List<Evaluation> findEvaluationByCoachId(Long coachId);

    List<Evaluation> findEvaluationByCourseId(Long courseId);
}
